<template>
  <div id="app">
    <router-view v-if="dInit"/>
  </div>
</template>

<script>
export default {
  name: 'App',
  data () {
    return {
      dInit: true
    }
  },
  created () {
    var openId = this.$cookies.get('openId');
    if (window.app.isDebug) {
      openId = 'oJEP8t3lOErHAb1nHabl21PIJkJU';
    }
    window.app.openId = openId;
    this.dInit = true;
    // if (openId) {
    //   this.dInit = true;
    // }else{
    //   window.location = "https://worldcup.dmpb.com.cn/";
    // }
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  height: 100%;
  width: 100%;
  position: relative;
}
</style>
